* {
  padding: 0;
  margin: 0 auto;
  scroll-behavior: smooth;

  a {
    text-decoration: none;
    display: inline-block;
    color: black;
    outline: none;
    &:link {
      text-decoration: none;
      outline: none;
      color: black;
    }
  }
}
body {
  background-color: rgb(238, 239, 239);
  box-sizing: border-box;

  button {
    cursor: pointer;
  }
  //   display: flex;
  //   justify-content: center;
}

input {
  border-style: none;
  outline-style: none;
}
ul {
  list-style: none;
}
// 顶部
.top {
  z-index: 5;
  transition: all 0.3s;
  position: fixed;
  width: 100%;
  height: 60px;
  display: flex;
  justify-content: center;
  align-items: center;
  box-sizing: border-box;

  background-color: rgb(255, 255, 255);
  #top {
    width: 1500px;
    display: flex;
    padding: 5px 20px;
  }
  #logo-search {
    display: flex;
    width: 380px;
    height: 50px;
  }

  .logo {
    width: 100px;
    height: 50px;
    img {
      height: 100%;
      width: 100%;
    }
  }
  &-search {
    position: relative;
    display: flex;
    border-radius: 25px;
    box-sizing: border-box;
    background-color: #edecec;
    width: 240px;
    height: 40px;
    padding: 10px;
    margin-top: 5px;
    .iconfont {
      background-color: #edecec;
      font-size: 22px;
      font-weight: bold;
    }
    .search-list {
      display: none;
      box-shadow: 0px 3px 5px #e8e8e8;
      position: absolute;
      top: 100%;
      left: 0;
      border-radius: 5px;
      width: 100%;
      background-color: #ffffff;
      padding: 5px 5px;
      div {
        .iconfont {
          line-height: 30px;
          background-color: rgba(0, 0, 0, 0);
          color: #d3d3d5;
          font-weight: 100;
        }
        line-height: 40px;
        font-size: 15px;
        text-decoration: none;
        display: inline-block;
        width: 100%;
        height: 40px;

        &:hover {
          cursor: pointer;
          background-color: #f8f8fb;
        }
      }
    }
  }
  #top-input {
    background-color: rgba(0, 0, 0, 0);
  }
}
// 主功能

#fn {
  width: 550px;
  height: 52px;
  display: flex;
  flex-wrap: nowrap;
  box-sizing: border-box;
  margin-top: 5px;
  div {
    width: 10%;
    height: 100%;

    text-align: center;
    box-sizing: border-box;
    padding: 5px;
    .icon {
      width: 100%;
      height: 90%;
      .iconfont {
        font-size: 28px;
        font-weight: 600;
      }
      &:hover {
        cursor: pointer;
        color: #ff8200;
        // background-color: #fcf7f7;
      }
    }
  }
}
.border {
  color: #ff8200;
  border-bottom: 4px solid #ff8200;
}

// 登录注册
.access {
  width: 400px;
  height: 40px;
  display: flex;

  padding: 5px 35px;
  box-sizing: border-box;

  #setting {
    width: 80px;
    background-color: white;
    #top-setting-btn {
      background-color: rgb(237, 236, 236);
      width: 30px;
      height: 30px;
      border-radius: 50%;
      border-style: none;
      .iconfont {
        font-size: 22px;
      }
      &:hover {
        background-color: #d3d3d5;
      }
    }
  }
  #login-register-btn {
    cursor: pointer;
    display: block;
    color: #ff8200;
    border: 1px solid rgb(252, 144, 12);
    outline-style: none;
    width: 150px;
    height: 35px;
    border-radius: 20px;
    font-size: 15px;
    letter-spacing: 5px;
    background-color: white;
    line-height: 35px;
    text-align: center;
    &:hover {
      background-color: #ff8200;
      color: white;
    }
  }
}

#content {
  display: flex;

  width: 1100px;
  position: relative;
  top: 70px;

  #news {
    overflow: hidden;
    position: relative;

    width: 572px;

    margin: 0 10px;
    left: 18.8%;
    border-radius: 5px 5px 0 0;
  }
}
#right-bar {
  position: relative;
  width: 280px;
  height: 100%;
  margin-right: 20px;
}
.hotright {
  overflow: hidden;
  position: fixed;
  width: 280px;
  height: 500px;
  background-color: white;
  border-radius: 5px;
  .refresh {
    font-size: 14px;
    color: #c2c2c5;
  }
}
.new {
  padding: 10px 5px;
  border-radius: 5px;
  width: 100%;
  height: 50px;
  box-sizing: border-box;
  background-color: #ffffff;
  margin-bottom: 8px;
  .new-list-content {
    display: inline-block;
  }

  .new-listbox {
    // background-image: url("../img/top.png");
    // background-repeat: no-repeat;
    // background-size: cover;
    // background-position: 100% 100%;
    background-color: #afb5c5;
    border-radius: 10.5px;
    width: 37px;
    height: 21px;
    overflow: hidden;
    display: inline-block;
    font-size: 16px;
    // color: brown;
    font-weight: 600;
    // margin: 0 5px;
    text-align: center;
    color: white;
  }
  .new-list {
    display: inline-block;
    width: 47px;
    height: 24px;
    overflow: hidden;
  }
  .new-title {
    font-size: 18px;
    font-weight: bold;
    color: black;
    &:hover {
      color: #f48207 !important;
      cursor: pointer;
    }
    &:link {
      text-decoration: none;
      outline: none;
      color: black;
    }
  }
}
.list {
  border-radius: 5px 5px 0 0;
  position: fixed;
  padding-top: 20px;
  width: 200px;
  height: 100%;
  margin-left: 0px;
  background-color: rgb(255, 255, 255);
  p {
    font-size: 24px;
    padding-left: 10px;
  }
  ul {
    height: auto;
    width: 90%;
    background-color: #ffffff;
    a {
      display: block;
      box-sizing: border-box;
      height: 60px;
      padding: 18px 0;
      font-size: 15px;
      span {
        display: inline-block;
        margin: 0 5px;
        i {
          font-size: 20px;
          font-weight: 500;
        }
      }
      &:hover {
        background-color: rgb(237, 236, 234);
      }
    }
  }
}
.hot-list {
  line-height: 30px;
  height: 40px;
  cursor: pointer;
  a {
    font-size: 16px;
  }

  span {
    display: inline-block;
    width: 40px;
    height: 40px;
    text-align: center;
    font-size: 18px;
    font-weight: 500;
    color: #ff8200;
  }
  .rank1,
  .rank2 {
    font-style: italic;
    font-weight: bold;
    color: #f26d5f;
  }
  .rank3 {
    font-style: italic;
    font-weight: 800;
    color: #f37467;
  }
  .rank4,
  .rank5,
  .rank6,
  .rank7,
  .rank8,
  .rank9,
  .rank10 {
    color: #ff8404;
  }
}
.all-hot {
  text-decoration: none;
  background-color: #f9f9f9;
  color: #919195;
  display: block;
  width: 100%;
  height: 40px;
  font-size: 15px;
  text-align: center;
  line-height: 40px;
  &:hover {
    color: #fe8f63;
  }
}

.return-top {
  color: #b1b1b1;
  opacity: 0;
  text-align: center;
  line-height: 40px;
  font-size: 25px;
  background-color: white;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  position: fixed;
  margin-left: 300px;
  bottom: 10%;
  &:hover {
    color: #000000;
  }
}

.hot-top {
  align-items: center;
  .hot-top-content {
    width: 182px;
    font-size: 20px;
  }

  display: flex;
  justify-content: space-between;
  width: 100%;
  height: 50px;

  padding: 5px 5px;
  box-sizing: border-box;
  .refresh {
    display: inline-block;
  }
}
.comment-btn {
  margin-left: 85%;
  margin-top: 5px;
  border-style: none;
  border-radius: 5px;
  color: white;
  font-size: 16px;
  font-weight: 540;
  background-color: #ff8200;
  width: 70px;
  height: 30px;
}
.disable {
  background-color: #ffc17f;
  cursor: not-allowed;
}
#comment {
  margin-top: 50px;
}
.comment-list {
  display: flex;
  width: 100%;
  height: 60px;
  box-sizing: border-box;
  background-color: rgb(255, 255, 255);
  a {
    display: inline-block;
    margin: 0 0;
    width: 40px;
  }
  .comment-head {
    width: 30px;
    height: 30px;
    border-radius: 50%;
    overflow: hidden;
    img {
      width: 100%;
      height: 100%;
      object-fit: cover;
    }
  }
  .comment-details {
    i {
      cursor: pointer;
      &:hover {
        color: #ffc17f;
      }
    }
    padding: 5px 5px;
    .comment-name {
      text-decoration: none;
      font-size: 15px;
      color: rgb(236, 193, 138);
    }
    width: 89%;
    height: 25px;
  }
  .c-content {
    font-size: 14px;
  }
  .comment-bottom {
    display: flex;
    justify-content: space-around;
    .c-time {
      width: 340px;
      font-size: 15px;
      color: darkgray;
    }
    .comment-fn {
      width: 130px;
      display: flex;
      justify-content: space-between;
    }
  }
}

.color {
  color: #ff8200 !important;
}
